package com.ptswitch.material.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.ContractInvoiceMapper;
import com.ptswitch.material.model.contract.ContractInvoice;
import com.ptswitch.material.service.ContractInvoiceService;

@Service
public class ContractInvoiceServiceImpl implements ContractInvoiceService {

    @Autowired
    private ContractInvoiceMapper mapper;

    @Override
    public ContractInvoice findById(long id) {
        return mapper.findById(id);
    }

    @Override
    public void save(ContractInvoice invoice) {
        mapper.add(invoice);
    }

}
